package com.bnyy.gbp;

import android.content.Intent;

import com.huantansheng.easyphotos.EasyPhotos;
import com.huantansheng.easyphotos.models.album.entity.Photo;

import java.util.ArrayList;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/6/7
 **/
public class EasyPhotosHelper {

    public static ArrayList<String> getImages(Intent data) {
        ArrayList<String> images = new ArrayList<>();
        if (data != null) {
            ArrayList<Photo> resultPhotos = data.getParcelableArrayListExtra(EasyPhotos.RESULT_PHOTOS);
            if (resultPhotos != null) {
                for (Photo photo : resultPhotos) {
                    images.add(photo.path);
                }
            }
        }
        return images;
    }
}
